Help with ConvertFrom-LdapFilter for Global Address List
We have installed an Exchange 2010 system, side by side with Exchange 2003, and this is our final step.
We've successfully run the following 2 scripts (atleast they completed with no errors):
Get-EmailAddressPolicy | WHERE { $_.RecipientFilterType -eq 'Legacy' } | foreach { Set-EmailAddressPolicy $_.Name -RecipientFilter (.\ConvertFrom-LdapFilter $_.LdapRecipientFilter) -ForceUpgrade }
Get-AddressList | WHERE { $_.RecipientFilterType -eq 'Legacy' } | foreach { Set-AddressList $_.Name -RecipientFilter (.\ConvertFrom-LdapFilter $_.LdapRecipientFilter) -ForceUpgrade }
When running the final one (for the GAL) it fails as follows:
Command =
Get-GlobalAddressList | WHERE { $_.RecipientFilterType -eq 'Legacy' } | foreach { Set-GlobalAddressList $_.Name -RecipientFilter (.\ConvertFrom-LdapFilter $_.LdapRecipientFilter) -ForceUpgrade }
Resulting text in EMS:
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): R
"((Alias -ne $null) -and (((((((((((((((ObjectCategory -like 'person') -and (ObjectClass -eq 'user'))) -and (-not(Datab
ase -ne $null)))) -and (-not(ServerLegacyDN -ne $null)))) -or (((((ObjectCategory -like 'person') -and (ObjectClass -eq
'user'))) -and (RecipientType -eq 'UserMailbox'))))) -or (((ObjectCategory -like 'person') -and (ObjectClass -eq 'cont
act'))))) -or (ObjectCategory -like 'group'))) -or (ObjectCategory -like 'publicFolder'))))" is not a valid recipient f
ilter for the default global address list "Default Global Address List". To upgrade the object's Exchange version, use
"-RecipientFilter {((Alias -ne $null) -and (((ObjectClass -eq 'user') -or (ObjectClass -eq 'contact') -or (ObjectClass
-eq 'msExchSystemMailbox') -or (ObjectClass -eq 'msExchDynamicDistributionList') -or (ObjectClass -eq 'group') -or (Obj
ectClass -eq 'publicFolder'))))}".
+ CategoryInfo : InvalidOperation: (\Default Global Address List:ADObjectId) [Set-GlobalAddressList], Inv
alidOperationException
+ FullyQualifiedErrorId : 788CD283,Microsoft.Exchange.Management.SystemConfigurationTasks.SetGlobalAddressList
[PS] C:\temp>
Additionally, when I attempt to open the Default Global Address List in the EMC - it doesn't open, no errors, no prompts, simply nothing.
What can I do to upgrade this one? Any ideas or cautions?
DQ
July 9th, 2012 3:33pm
Hi,
I have never used the script ConvertFrom-LdapFilter.
I find it very easy to copy/paste the information from the below Technet Article.
Set-GlobalAddressList "Default Global Address List" -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq 'user' -or ObjectClass -eq 'contact' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistributionList' -or ObjectClass
-eq 'group' -or ObjectClass -eq 'publicFolder'))}
Upgrade Default Address Lists from LDAP Filters to OPATH Filters
http://technet.microsoft.com/en-us/library/dd335105
Martina Miskovic
Free Windows Admin Tool Kit Click here and download it now
July 9th, 2012 3:41pm
Thanks for the quick response.
I ran the above and the versions (when running get-globaladdresslist .....exchangeversion) now shows that its updated as it = 8.0.535.0.
I still can't click on the default global address list in the EMC (nothing happens). Also, the other address lists I can rclick and have options for : apply, remove, edit, help and on the default global address list the only option is 'help'.
Is that OK?DQ
July 9th, 2012 4:12pm
I still can't click on the default global address list in the EMC (nothing happens). Also, the other address lists I can rclick and have options for : apply, remove, edit, help and on the default global address list the only option is 'help'.
Is that OK?
DQ
You're Welcome!
In Exchange 2010 there's nothing that can be done with the GAL in EMC, so yes...That's Ok.
Martina Miskovic
Free Windows Admin Tool Kit Click here and download it now
July 9th, 2012 4:15pm
Awesome.
Thanks again!DQ
July 9th, 2012 5:18pm